package com.smfx.yxt.common.enums;

public enum GuideStatus {

	SENDED("000", "已下发行政"),
	PENDING("001", "待处理"),
	NO_SEND("002", "不下发行政");
	
	private final String code;
	
	private final String desc;
	
	private GuideStatus(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(String code) {
		for(GuideStatus status : GuideStatus.values()) {
			if(status.getCode().equals(code)) {
				return status.getDesc();
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
